package router

import (
	"github.com/gin-gonic/gin"
	"tourism-app/common/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/scenic/toEs", ScenicToEs)
	r.POST("/search/scenic", SearchScenic)
	r.POST("/scenic/item", ScenicItem)
	r.POST("/login", Login)
	r.POST("/aliPay", AliPay)
	r.Use(pkg.JWTAuth("2209A"))
	r.POST("/create/order", CreateOrder)
	r.POST("/realName", RealName)
	r.POST("/order/list", OrderList)
	r.POST("/order/refund", Refund)
}
